from pydantic import BaseModel
from enum import Enum

class Gender(str, Enum):
    male="male"
    female="female"
class UserBase(BaseModel):
    id:int
    username: str
    permissions:int
    gender: Gender


class UserCreate(UserBase):
    pass


class UserDelete(UserBase):
    id: int

class UserUpdate(UserBase):
    pass
